<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <style>
        html,body {
            display: flex;
            flex-direction: column;
            background-color: #222222;
        }

        .box {
            position: relative;
        }

        .box img {
            position: absolute;
            top: 0;
            left: 0;
            width: 700px;
            transition: all 2s;
        }

        .box img:nth-child(2) {
            /* width: 0; */
            -webkit-clip-path: polygon(0% 0%, 0 0, 0 53%, 0% 100%, 0 100%);
            clip-path: polygon(0% 0%, 0 0, 0 53%, 0% 100%, 0 100%);
        }

        .box:hover img:nth-child(2) {
            -webkit-clip-path: polygon(0% 0%, 75% 0%, 100% 50%, 75% 100%, 0% 100%);
            clip-path: polygon(0% 0%, 75% 0%, 100% 50%, 75% 100%, 0% 100%);
        }

        .screenLight {
            margin: 300px auto;
            width: 100%;
            font-size: 200px;
            position: relative;
        }

        .screenLight::after {
            content: "HOLLOWORLD";
            color: transparent;
            position: absolute;
            top: 0;
            left: 0;
            background: linear-gradient(to right, #ff69b3, #fe0000, #ffa401, #ffff01, #008102, #40e1d2, #410898, #9400d4);
            background-clip: text;
            /* 裁剪 clip path */
            clip-path: circle(100px at 100% 50%);
            animation: move 5s linear infinite;
        }

        @keyframes move {
            /* 左侧 */
            0% {
              clip-path: circle(100px at 0% 50%);
            }
            /* 右侧 */
            50% {
              clip-path: circle(100px at 100% 50%);
            }  
            100% {
              clip-path: circle(100px at 0% 50%);
            }
        }
    </style>
    <title>clip-path</title>
    <!-- 内置几何形 -->
    <!-- 状如：circle、polyon -->
    <!-- clip-path在线可视化工具：https://tools.jb51.net/static/api/css3path/index.html -->
</head>
<body>
    <footer class="nihao" style="width: 200px;height: 100px;background-color: #608fa5;color: aliceblue; -webkit-clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);display: flex;justify-content: center;align-items: center;font-size: 20px;">英雄联盟</footer>

    <!-- 汽车的变化图 -->
    <div class="box">
        <img src="./11月16日git/img1/blue.png">
        <img src="./11月16日git/img1/orange.png">
    </div>

    <!-- 文字聚光灯（文字裁剪） -->
    <div class="screenLight">
       HOLLOWORLD
    </div>
</body>
</html>